1、修复assert_ocr_not_exist断言Bug2、扩展assert_ocr_exist 与 assert_ocr_not_exist断言3、优化OCR识别范围筛选方法 #96
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1、修复assert_ocr_not_exist断言Bug
修复在传入多个参数时,断言无效的Bug
2、扩展assert_ocr_exist 与 assert_ocr_not_exist断言
增加bbox参数,新增区域断言支持,主要用于解决当整个屏幕内容较多,干扰较大时OCR精准度过低问题
3、优化OCR识别范围筛选方法
修改了使用方法,历史调用中在区域内查找到了多个关键字会返回第一组坐标,但该结果违背了使用此方法的初衷(当结果出现多个关键词坐标时,进行范围筛选,得出我们需要的唯一坐标),这里增加了过程校验,确保最终只能返回唯一坐标